import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    num: 1,
    type: 0,
    detail:0,
    date2:'',
  },
  getters: {
  },
  mutations: {
    num_jian(state){
      state.num--
    },num_jia(state){
      state.num++
    },type_0(state){
      state.type=0
    },type_1(state){
      state.type=1
    },type_2(state){
      state.type=2
    },detail(state,tid){
      state.detail=tid
    },

  },
  actions: {
  },
  modules: {
  }
})
